package com.teen9g.userVO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class PlaygroundUserVO implements Serializable {
    private Integer contentId; //内容id
    private String contentTitle; //内容标题 DTO
    private String contentCategory; //内容分类 DTO
    private String contentDescription; //内容描述 DTO
    private String contentAuthor; //内容作者
    private String contentImage; //内容图片 要数组中的第一个
    private Integer playgroundView; //浏览量
    private Integer playgroundCommentCount; //评论数量
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime contentCreateTime; //内容创建时间
}
